#include"ggraph.h"

double g [][MAX] = 
{{0, 28, INF, INF, INF, 10, INF},
 {28, 0, 16, INF, INF, INF, 14},
 {INF, 16, 0, 12, INF, INF, INF},
 {INF, INF, 12, 0, 22, INF, 18},
 {INF, INF, INF, 22, 0, 25, 24},
 {10, INF, INF, INF, 25, 0, INF},
 {INF, 14, INF, 18, 24, INF, 0}};

double g2 [][MAX] = 
{{0, 4, 6, 6, INF, INF, INF},
 {INF, 0, 1, INF, 7, INF, INF},
 {INF, INF, 0, INF, 6, 4, INF},
 {INF, INF, 2, 0, INF, 5, INF},
 {INF, INF, INF, INF, 0, INF, 6},
 {INF, INF, INF, INF, 1, 0, 8},
 {INF, INF, INF, INF, INF, INF, 0}};

int main ()
{
	MatGraph *p_mg = NULL;
	create(&p_mg, g2, 7, 12);
	print(p_mg);
	dijkstra(p_mg, 0);
	destroy(p_mg);
	/*
	create(&p_mg, g, MAX, 9);
	print(p_mg);
	kruskal(p_mg);
	destroy(p_mg);*/
	return 0;
}
